package com.bz.xtcx.manager;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.jms.annotation.EnableJms;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * Sample WAR application
 */
@SpringBootApplication
@EnableTransactionManagement
@MapperScan(basePackages = {"com.bz.xtcx.manager.mapper"})
@ComponentScan(basePackages = {"com.bz.xtcx.manager"})
@ServletComponentScan
@EnableAutoConfiguration
@Configuration
@EnableJms
public class SampleWarApplication extends SpringBootServletInitializer {
    
    public static void main(String[] args) throws Exception{
        //System.out.println(SampleWarApplication.class.getResource("/").toString());
        //System.setProperty("spring.devtools.restart.enabled", "false");
        SpringApplication.run(SampleWarApplication.class, args);
    }
}
